#include "debug.h"
#include "gpio_config.h"
#include "ledflashmode.h"
#include "timinterruptinit.h"
#include "tim_config.h"

int main(void)
{
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    USART_Printf_Init(115200);
    printf("SystemClk:%d\r\n", SystemCoreClock);

    GPIO_ControlLedLevel_INIT();
    TimInterruptInit(TIM2_Period,TIM2_Prescaler);

    while(1)
    {
       LedBlink();
    }
}
